home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000204_news@newsmaster….columbia.edu _Mon Feb 9 18:16:08 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA00301
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 9 Feb 1998 18:16:08 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA24881
  7.     for kermit.misc@watsun; Mon, 9 Feb 1998 18:16:07 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Does C-Kermit have PPP dialer capability
  12. Date: 9 Feb 1998 23:16:03 GMT
  13. Organization: Columbia University
  14. Lines: 61
  15. Message-ID: <6bo2nj$oc3$1@apakabar.cc.columbia.edu>
  16. References: <6bng59$q0h@niven.ksc.nasa.gov>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8390
  19.  
  20. In article <6bng59$q0h@niven.ksc.nasa.gov>, Keith Perry <gigabit@iu.net> wrote:
  21. : Does anyone know if C-Kermit can be used as a PPP Dialer to an
  22. : Internet Service Provider?  I'm looking to connect a PC with Linux
  23. : or Solaris (x86) 2.5.1 to my local ISP.  I have the latest "Using C-Kermit"
  24. : book by da Cruz & Gianone.  It really doesn't explicity address this issue in
  25. : it's TCP/IP section or anywhere else in the book.  Am I missing something?
  26. : Any help would be greatly appreciated.
  27. >From the Kermit FAQ:
  28.  
  29.   http://www.columbia.edu/kermit/faq.html
  30.   ftp://kermit.columbia.edu/kermit/faq.txt
  31.  
  32. 27 How Can I Exit from C-Kermit without Hanging Up?
  33.  
  34. Many people want to be able to make a dialout connection with UNIX C-Kermit,
  35. but then use some other software on the connection that C-Kermit made.  For
  36. example, they want to use C-Kermit as their SLIP or PPP dialer.  But they
  37. quickly find that when they exit from C-Kermit, that the connection is gone
  38. before they can start the other application.
  39.  
  40. It is a fundamental property of UNIX (and VMS, and Windows 95 and NT, and most
  41. other modern operating systems) that when a process exits, then every file that
  42. was opened by that process is automatically closed by the operating system.  In
  43. most cases, closing a terminal device (such as a dialout serial port) hangs up
  44. the modem (by turning off the DTR signal).  There is nothing the process can do
  45. about it.
  46.  
  47. However, many workarounds are possible.  Here are just a few:
  48.  
  49.    - If your C-Kermit version supports the REDIRECT command, use it to
  50.      start the desired application (e.g. "redirect pppd").  The REDIRECT
  51.      command runs the given application with its standard input and output
  52.      redirected to the communications channel opened by C-Kermit's most
  53.      recent SET LINE or SET HOST command.
  54.  
  55.    - Tell C-Kermit to SET MODEM HANGUP-METHOD RS232, and then configure
  56.      your modem to ignore DTR (not recommended).  "Using C-Kermit", 2nd
  57.      Ed., p.86.
  58.  
  59.    - When opening the device first from another application, feed the file
  60.      descriptor for the device to C-Kermit using the "-l" (lowercase
  61.      letter L) command-line option followed by the numeric file
  62.      descriptor, e.g.  "kermit -l 6".  Then Kermit will not attempt to
  63.      open the device, nor to change its characteristics, nor to close it
  64.      when done, and when Kermit exits, it will still be available to the
  65.      invoking process.  "Using C-Kermit", 2nd Ed., p.469.
  66.  
  67.    - When opening the device with C-Kermit, find out the file descriptor
  68.      of the open device (it is given by C-Kermit's \v(ttyfd) variable) and
  69.      then run ("!")  your other program from the C-Kermit prompt, feeding
  70.      it the file descriptor, e.g. through shell redirection or a command
  71.      line option (the method depends on the other program, the
  72.      capabilities of the shell, etc).  "Using C-Kermit", 2nd Ed., p.356
  73.  
  74.    - In UNIX, after Kermit makes the connection, type "show comm" to find
  75.      out the filename of the lock file.  Then suspend Kermit, delete the
  76.      lock file, then start the other program and tell it to open the same
  77.      tty device.
  78.  
  79. - Frank